package snapex.core.mapper.ext;

import java.sql.Date;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.UpdateProvider;

@Mapper
public interface ExpenseMapperExt extends snapex.core.mapper.ExpenseMapper{

    @UpdateProvider(type=ExpenseSqlProvider.class)    
    void calcTotalAmount(String expenseId);
    
    @UpdateProvider(type=ExpenseSqlProvider.class)
    void updateExpenseStatus(String expenseId, Integer status, Date submittedDate);
    
    @UpdateProvider(type=ExpenseSqlProvider.class)
    void updateExpenseDetailStatus(String expenseId, Integer status);
}